<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="format-detection" content="telephone=no" />
<meta name="apple-touch-fullscreen" content="YES" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="MobileOptimized" content="320" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<title>上品生活</title>
<link href="__PUBLIC__/Catalog/css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/scripts/jquery-1.7.2.min.js"></script>
</head>

<body>
<div class="top"><a href="javascript:history.back();"><img src="__PUBLIC__/Catalog/nimages/tb.png"></a>
    <p>收货地址</p>
</div>

<form action="<?php echo U('Membership/manageaddress');?>" method="post">
    <?php if(is_array($address)): foreach($address as $key=>$vo): ?><div class="height25"></div> 
	    <div class="S-form_box2">
	      <p class="noneborder"><label>设为默认：</label><input type="radio" name="address_id" value="<?php echo ($vo["address_id"]); ?>" <?php if($vo["default_flag"] == 1): ?>checked="checked"<?php endif; ?> /></p>
	      <p><label>姓名：</label><?php echo ($vo["lastname"]); ?></p>
	      <p><label>电话：</label><?php echo ($vo["phone"]); ?></p>
	      <p><label>地址：</label><?php echo ($vo["address_1"]); echo ($vo["address_2"]); ?></p>
	    </div><?php endforeach; endif; ?>
    <div class="S-form_box"><input type="submit" class="sub" value="修改默认地址" /></div>
</form>
<div class="height25"></div> <div class="height25"></div> 
<div class="height25"></div> <div class="height25"></div> 


<script>
$(function(){
    if('<?php echo ($msg); ?>'!='0'){
        alert('<?php echo ($msg); ?>');
    }
});
</script>
 <div id="master_foot">
  	<a href="<?php echo U('Index/index');?>" class="cover"><img src="__PUBLIC__/Catalog/nimages/bottom_10.png"><span>首页</span></a>
  	<a href="<?php echo U('Products/index');?>"><img src="__PUBLIC__/Catalog/nimages/bottom_12.png"><span>商品</span></a>
  	<a href="<?php echo U('Mproducts/publish');?>"><img src="__PUBLIC__/Catalog/nimages/bottom_03.png"><span>发布</span></a>
  	<a href="<?php echo U('Membership/leaveword');?>" class="xx"><i><?php echo ($count); ?></i><img src="__PUBLIC__/Catalog/nimages/bottom_05.png"><span>信息</span></a>
  	<a href="<?php echo U('Membership/index');?>"><img src="__PUBLIC__/Catalog/nimages/bottom_07.png"><span>我的</span></a>
  </div>
</body>
</html>